package com.example.heimashop.view.activity;

import androidx.recyclerview.widget.LinearLayoutManager;

import com.example.heimashop.base.BaseActivity;
import com.example.heimashop.databinding.ActivityOrderDetailBinding;

/**
 * 订单详情页面
 * 页面13: OrderDetailActivity - 订单详情页面
 */
public class OrderDetailActivity extends BaseActivity<ActivityOrderDetailBinding> {

    @Override
    protected ActivityOrderDetailBinding getViewBinding() {
        return ActivityOrderDetailBinding.inflate(getLayoutInflater());
    }

    @Override
    protected void initView() {
        binding.rvProducts.setLayoutManager(new LinearLayoutManager(this));
        // TODO: 设置商品适配器
    }

    @Override
    protected void initData() {
        // TODO: 加载订单详情数据
    }

    @Override
    protected void initListener() {
        binding.ivBack.setOnClickListener(v -> finish());
    }
}
